<div class="nav">
    <div class="top">
        <div class="inner">
            <div class="left">
                {$site.name}：安全、高速、放心的专业下载站！
            </div>
            <div class="right">
                <a href="/">{$site.name}</a>
                {volist name="$category" id="vo"}
                <a href="{$vo.nickname}">{$vo.name}</a>
                {/volist}
            </div>
        </div>
    </div>
    <div class="middle">
        <div class="inner" style="margin: 1px auto">
            <a class="logo"></a>
            <div class="right">
                <div class="search">
                    <form method="post" action="/search/index">
                        <input name="keywords" placeholder="请输入搜索关键词" value="">
                        <button type="submit"></button>
                    </form>
                </div>

            </div>
        </div>
    </div>
    <div class="bottom">
        <div class="inner">
            <a href="/" class="active">首页</a>
            {volist name="$category" id="vo"}
            <a title="{$vo.name}" href="{$vo.nickname}">{$vo.name}</a>
           {/volist}

        </div>
    </div>
</div>
<script type="text/javascript">
    $(".nav .bottom a:eq(0)").addClass("active");
</script>